package com.demo.designpattern.singleton;

/**
 * Created by hunter
 *
 * @Description 内部类式, 也属于懒加载
 */
public class InnerClassSingleton {

    private InnerClassSingleton() {
        System.out.println("内部类式单例被初始化拉...");
    }

    public static class InstanceHolder {
        public static final InnerClassSingleton INSTANCE = new InnerClassSingleton();
    }
}
